package com.ellecity06.common.paging3.diff

/**
 * @author zavier
 * @time 2023/4/22 11:37
 * @des diff数据比对接口
 */
interface DifferData {

    fun areItemsTheSame(data: DifferData): Boolean {
        return this == data
    }

    fun areContentsTheSame(data: DifferData): Boolean {
        return this == data
    }

    fun getChangePayload(data: DifferData): Any? {
        return null
    }

    fun getViewType(): Int = 0
}